package com.wenhuang.chatgptopen.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wenhuang.chatgptopen.pojo.Topic;
import com.wenhuang.chatgptopen.pojo.User;
import net.sf.jsqlparser.statement.select.Top;
import org.springframework.stereotype.Service;

import java.util.List;

/*
 *@Time：2023/6/3
 *@Author：Jelly
 */
@Service
public interface TopicService extends IService<Topic> {

    //功能一：根据用户id往数据库添加帖子
    Integer addContent(Topic topic);
    //功能二：根据用户Id和帖子内容删除帖子
    Integer deleteTopic(Topic topic);
    //功能三：根据用户id查询帖子
    List<Topic> selectTopicByUserId(Topic topic);
    //根据用户id和标题内容查询帖子
    Topic selectTopicByTitleAndUserId(Topic topic);

}
